package com.kang.dto;

import lombok.Data;

import java.util.Calendar;
import java.util.List;

@Data
public class AreaDto {

    private Integer value;

    private String label;

    private List<AreaDto> children;

    public static void main(String[] args) {
//        Calendar calendar = Calendar.getInstance();
////        calendar.set(Calendar.YEAR,2022);
//        //定时任务跑接口  设置为每天凌晨更新
//        calendar.add(Calendar.DAY_OF_YEAR,1);
//        calendar.set(Calendar.HOUR_OF_DAY,0);
//        calendar.set(Calendar.SECOND,0);
//        calendar.set(Calendar.MINUTE,0);
//        calendar.set(Calendar.MILLISECOND,0);
//        //晚上十二点与当前时间的毫秒差
//        Long timeOut = (calendar.getTimeInMillis()-System.currentTimeMillis()) / 1000;
//        System.out.println(calendar.get(Calendar.YEAR));
//        System.out.println(calendar.get(Calendar.MONTH));   //0表示1月
//        System.out.println(calendar.get(Calendar.MINUTE));
//        System.out.println(calendar.get(Calendar.SECOND));
//        System.out.println(calendar.get(Calendar.DATE));
//        System.out.println(timeOut);

    }


}
